미디어위키:AnecdoteViewer.css

Nxdsxn (토론 | 기여)님의 2026년 5월 30일 (토) 23:16 판

참고: 설정을 저장한 후에 바뀐 점을 확인하기 위해서는 브라우저의 캐시를 새로 고쳐야 합니다.

  • 파이어폭스 / 사파리: Shift 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5 또는 Ctrl-R을 입력 (Mac에서는 ⌘-R)
  • 구글 크롬: Ctrl-Shift-R키를 입력 (Mac에서는 ⌘-Shift-R)
  • 인터넷 익스플로러 / 엣지: Ctrl 키를 누르면서 새로 고침을 클릭하거나, Ctrl-F5를 입력.
  • 오페라: Ctrl-F5를 입력.
/* =========================================
COASTLINE: BLACK ICE - AnecdoteViewer
Original Crimson-Leather flow / CLBI platform skin
========================================= */

/*
기준
-----------------------------------------
이 파일은 에넥도트 감상 모드의 화면 전환과 뷰어 내부 레이아웃을 담당한다.
위키 셸 전환은 AnecdoteViewer 전용 모드가 맡고, 뷰어 내부 배치·진행 방식은
폐기 전 Crimson-Leather 원본 프로젝트의 container3 / narration / chat / timeline 구조를 따른다.
*/

/* -----------------------------------------
0. Reader mode shell
----------------------------------------- */

html.anecdote-reader-mode-html {
height:100% !important;
overflow:hidden !important;
}

body.anecdote-reader-mode {
min-width:0 !important;
height:100vh !important;
overflow:hidden !important;
}

body.anecdote-reader-mode #clbi-top-nav-wrap {
height:0 !important;
min-height:0 !important;
margin:0 auto !important;
padding:0 !important;
overflow:visible !important;
pointer-events:none;
}

body.anecdote-reader-mode #clbi-top-nav {
transform:translateY(calc(-100% - 18px));
opacity:0;
pointer-events:none;
transition:
transform .46s cubic-bezier(.18,.78,.22,1),
opacity .28s ease;
}

body.anecdote-reader-mode #clbi-left-sidebar,
body.anecdote-reader-mode #clbi-right-sidebar {
position:fixed !important;
top:0 !important;
z-index:20 !important;
transform:translateY(115vh);
opacity:0;
pointer-events:none !important;
transition:
transform .54s cubic-bezier(.18,.78,.22,1),
opacity .28s ease;
}

body.anecdote-reader-mode #clbi-left-sidebar {
left:calc(50vw - 730px);
}

body.anecdote-reader-mode #clbi-right-sidebar {
right:calc(50vw - 730px);
}

body.anecdote-reader-mode .content-wrapper {
position:fixed !important;
left:50% !important;
top:24px !important;
bottom:62px !important;
z-index:30 !important;
width:1000px !important;
min-width:1000px !important;
max-width:1000px !important;
height:auto !important;
display:block !important;
grid-template-columns:none !important;
gap:0 !important;
margin:0 !important;
padding:0 !important;
box-sizing:border-box !important;
transform:translateX(-50%) !important;
overflow:visible !important;
transition:
width .46s cubic-bezier(.18,.78,.22,1),
top .46s cubic-bezier(.18,.78,.22,1),
bottom .46s cubic-bezier(.18,.78,.22,1);
}


body.anecdote-index-mode .content-wrapper {
bottom:24px !important;
}

body.anecdote-index-mode #anecdote-control-deck {
display:none !important;
}

body.anecdote-reader-mode .container-fluid.liberty-content {
width:100% !important;
height:100% !important;
max-width:none !important;
min-width:0 !important;
margin:0 !important;
padding:0 !important;
display:block !important;
overflow:visible !important;
}

body.anecdote-reader-mode .liberty-content-main,
body.anecdote-reader-mode .Liberty .content-wrapper .liberty-content .liberty-content-main {
width:100% !important;
height:100% !important;
min-height:0 !important;
margin:0 !important;
padding:0 !important;
background:transparent !important;
border:0 !important;
border-radius:0 !important;
box-shadow:none !important;
overflow:visible !important;
}

body.anecdote-reader-mode .liberty-content-header,
body.anecdote-reader-mode .catlinks,
body.anecdote-reader-mode .printfooter,
body.anecdote-reader-mode .liberty-footer,
body.anecdote-reader-mode footer {
display:none !important;
}

body.anecdote-reader-mode .liberty-content-main .mw-parser-output {
height:100% !important;
min-height:0 !important;
margin:0 !important;
padding:0 !important;
background:transparent !important;
overflow:visible !important;
}

body.anecdote-reader-mode .mw-parser-output > p:empty {
display:none !important;
}

body.anecdote-reader-mode #dev-tools-panel {
z-index:99998 !important;
}

/* -----------------------------------------
1. Mount root / system panel
----------------------------------------- */

.anecdote-viewer-root,
.anecdote-viewer-root *,
.anecdote-viewer-root *::before,
.anecdote-viewer-root *::after {
box-sizing:border-box;
}

.anecdote-viewer-root {
width:100%;
height:100%;
min-height:0;
margin:0;
padding:0;
color:#e2e2e2;
font-size:12px;
line-height:1.55;
}

.anecdote-viewer {
position:relative;
width:100%;
height:100%;
min-height:0;
margin:0;
padding:0;
background:transparent;
color:#e2e2e2;
overflow:visible;
isolation:isolate;
}

.anecdote-system-panel {
height:100%;
min-height:420px;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:10px;
background:#080808;
border:1px solid;
border-color:#555555 #2b2b2b #050505 #2b2b2b;
box-shadow:
inset 0 1px 0 rgba(255,255,255,.040),
inset 0 -1px 0 rgba(0,0,0,.72),
0 12px 34px rgba(0,0,0,.52);
text-align:center;
}

.anecdote-system-title {
font-size:12px;
font-weight:700;
letter-spacing:.45px;
color:#e2e2e2;
text-shadow:1px 1px 0 #000;
}

.anecdote-system-text {
max-width:620px;
color:#8a8a8a;
font-size:11px;
line-height:1.6;
}

.anecdote-system-code {
max-width:760px;
margin:4px 0 0;
padding:8px 10px;
background:#050505;
border:1px solid #202020;
color:#c8c8c8;
font-family:Consolas, Monaco, monospace !important;
font-size:11px;
line-height:1.45;
white-space:pre-wrap;
text-align:left;
}


/* -----------------------------------------
2. Anecdote work index - original index layout
----------------------------------------- */

.anecdote-work-index {
position:relative;
width:100%;
height:100%;
min-height:0;
overflow:hidden;
background:#070707;
border:1px solid #050505;
box-shadow:
inset 0 1px 0 #555555,
inset -1px 0 0 #555555,
inset 1px 0 0 #101010,
inset 0 -1px 0 #101010,
0 12px 34px rgba(0,0,0,0.54);
}

.anecdote-work-index::before {
content:"";
position:absolute;
inset:-20px;
z-index:0;
pointer-events:none;
background-image:var(--anecdote-index-bg);
background-size:cover;
background-position:center;
background-repeat:no-repeat;
filter:blur(15px) grayscale(30%);
opacity:.32;
}

.anecdote-work-index::after {
content:"";
position:absolute;
inset:0;
z-index:1;
pointer-events:none;
background:rgba(0,0,0,.54);
}

.anecdote-index-scroll {
position:relative;
z-index:2;
width:100%;
height:100%;
min-height:0;
overflow-y:auto;
overflow-x:hidden;
padding:10px 0 24px;
background:transparent;
}

.anecdote-index-scroll::-webkit-scrollbar {
width:6px;
}

.anecdote-index-scroll::-webkit-scrollbar-track {
background:#080808;
}

.anecdote-index-scroll::-webkit-scrollbar-thumb {
background:#333333;
border-radius:0;
}

.anecdote-index-container,
.anecdote-index-section {
width:100%;
max-width:1000px;
margin:10px auto;
box-sizing:border-box;
}

.anecdote-index-container {
display:flex;
align-items:flex-start;
gap:30px;
padding:30px;
background:#1d1d1d;
border:1px solid #050505;
box-shadow:
inset 0 1px 0 #555555,
inset -1px 0 0 #555555,
inset 1px 0 0 #101010,
inset 0 -1px 0 #101010,
0 6px 18px rgba(0,0,0,.34);
}

.anecdote-index-cover {
flex:0 0 250px;
width:250px;
}

.anecdote-index-cover img,
.anecdote-index-cover-placeholder {
display:block;
width:250px;
min-height:350px;
object-fit:cover;
background:#080808;
border:1px solid #202020;
box-shadow:0 0 10px rgba(0,0,0,.48);
filter:grayscale(.10) contrast(1.02);
}

.anecdote-index-cover-placeholder {
display:flex;
align-items:center;
justify-content:center;
color:#626262;
font-size:10px;
font-weight:700;
letter-spacing:.6px;
}

.anecdote-index-info {
flex:1 1 auto;
min-width:0;
}

.anecdote-index-title {
margin:0 0 8px;
font-size:1.9em;
font-weight:700;
line-height:1.25;
color:#ffffff;
text-shadow:1px 1px 0 #000;
}

.anecdote-index-author {
margin:4px 0;
color:#8a8a8a;
font-size:.95em;
}

.anecdote-index-tags {
margin-top:10px;
}

.anecdote-index-tags span {
display:inline-block;
margin:5px 5px 0 0;
padding:6px 12px;
background:#101010;
border:1px solid #202020;
color:#c8c8c8;
font-size:.85em;
box-shadow:inset 0 1px 0 rgba(255,255,255,.024), inset 0 -1px 0 rgba(0,0,0,.58);
}

.anecdote-index-actions {
display:flex;
flex-wrap:wrap;
gap:8px;
margin-top:20px;
}

.anecdote-index-button {
display:inline-flex;
align-items:center;
justify-content:center;
min-height:36px;
padding:0 18px;
background:linear-gradient(to bottom,#171717 0%,#141414 56%,#101010 100%);
border:1px solid;
border-color:#333333 #202020 #050505 #202020;
color:#e2e2e2 !important;
font-weight:700;
font-size:12px;
line-height:1;
text-decoration:none !important;
text-shadow:1px 1px 0 #000;
box-shadow:inset 0 1px 0 rgba(255,255,255,.040);
cursor:pointer;
}

.anecdote-index-button:hover {
background:linear-gradient(to bottom,#202020 0%,#1a1a1a 56%,#141414 100%);
border-color:#444444 #333333 #101010 #333333;
color:#ffffff !important;
}

.anecdote-index-button.is-disabled {
opacity:.45;
pointer-events:none;
cursor:default;
}

.anecdote-index-fade-wrapper {
position:relative;
max-height:7em;
overflow:hidden;
transition:max-height .4s ease;
margin-top:14px;
}

.anecdote-index-fade-wrapper::after {
content:"";
position:absolute;
left:0;
right:0;
bottom:0;
z-index:1;
height:7em;
pointer-events:none;
background:linear-gradient(to bottom, rgba(29,29,29,0), #1d1d1d);
transition:opacity .3s ease;
}

.anecdote-index-fade-wrapper.expanded {
max-height:none;
}

.anecdote-index-fade-wrapper.expanded::after {
opacity:0;
}

.anecdote-index-fade-text {
font-size:.95em;
line-height:1.7;
color:#dddddd;
position:relative;
z-index:0;
}

.anecdote-index-fade-text p {
margin:0 0 .8em;
}

.anecdote-index-read-more {
display:block;
margin:4px 0 0;
padding:0;
background:transparent;
border:0;
color:#aaa;
font:inherit;
font-size:.9em;
text-align:left;
cursor:pointer;
user-select:none;
}

.anecdote-index-read-more:hover {
color:#ffffff;
}

.anecdote-index-read-more.hidden {
display:none;
}

.anecdote-index-section {
position:relative;
padding:10px 30px;
background:#1b1b1b;
border:1px solid #050505;
box-shadow:
inset 0 1px 0 #555555,
inset -1px 0 0 #555555,
inset 1px 0 0 #101010,
inset 0 -1px 0 #101010,
0 6px 18px rgba(0,0,0,.34);
}

.anecdote-index-section-ribbon {
position:absolute;
top:-4px;
left:-14px;
z-index:10;
margin-top:10px;
background:#313131;
color:#ffffff;
padding:6px 14px;
font-size:.85em;
font-weight:700;
line-height:1;
border-left:6px solid #616161;
box-shadow:2px 2px 6px rgba(0,0,0,.4);
text-shadow:1px 1px 0 #000;
}

.anecdote-index-ep-header {
font-size:1.3em;
font-weight:900;
margin-top:25px;
}

.anecdote-index-ep-title {
color:#e1e1e1 !important;
text-decoration:none !important;
text-shadow:1px 1px 0 #000;
}

.anecdote-index-ep-title.is-disabled {
color:#777777 !important;
}

.anecdote-index-link-effect {
position:relative;
transition:color .3s ease;
}

.anecdote-index-link-effect:hover {
color:#ffffff !important;
}

.anecdote-index-link-effect::after {
content:"›";
display:inline-block;
margin-left:8px;
color:#8a8a8a;
font-size:.8em;
vertical-align:1px;
}

.anecdote-index-long-divider {
border:0;
border-top:1px solid #414141;
box-shadow:0 1px 0 rgba(255,255,255,.018);
margin:12px 0 0;
}

.anecdote-index-tutorial-overlay {
position:fixed;
inset:0;
z-index:99991;
background:rgba(0,0,0,.6);
backdrop-filter:blur(6px);
align-items:center;
justify-content:center;
}

.anecdote-index-tutorial-popup {
position:relative;
width:400px;
max-width:calc(100vw - 32px);
background:#1a1a1a;
border:1px solid;
border-color:#555555 #2b2b2b #050505 #2b2b2b;
padding:30px;
box-shadow:0 0 20px rgba(0,0,0,.6);
color:#eeeeee;
text-align:center;
animation:anecdote-fade-in-up .5s ease-out;
}

.anecdote-index-tutorial-popup p {
margin:10px 0;
font-size:9.5pt;
line-height:1.6;
}

.anecdote-index-tutorial-popup strong {
font-weight:700;
color:#ffffff;
}

.anecdote-index-tutorial-popup code {
padding:1px 5px;
background:#080808;
border:1px solid #202020;
color:#e2e2e2;
}

.anecdote-index-close-btn {
position:absolute;
top:8px;
right:12px;
background:transparent;
border:0;
font-size:22px;
color:#aaa;
cursor:pointer;
}

.anecdote-index-close-btn:hover {
color:#ffffff;
}

/* -----------------------------------------
2. Original Crimson-Leather reading frame
----------------------------------------- */

.anecdote-original-frame {
position:relative;
width:100%;
height:100%;
min-height:0;
background:#1d1d1d;
border:1px solid #050505;
border-radius:0;
box-shadow:
inset 0 1px 0 #555555,
inset -1px 0 0 #555555,
inset 1px 0 0 #101010,
inset 0 -1px 0 #101010,
0 12px 34px rgba(0,0,0,0.54);
overflow:visible;
}

.anecdote-original-frame::before {
content:"";
position:absolute;
inset:0;
z-index:0;
pointer-events:none;
background:
radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.025) 0%, transparent 42%),
linear-gradient(to bottom, rgba(255,255,255,0.016) 0%, transparent 25%, rgba(0,0,0,0.26) 100%);
}

.anecdote-original-frame::after {
content:"";
position:absolute;
inset:8px;
z-index:1;
pointer-events:none;
border:1px solid #202020;
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.018),
inset 0 -1px 0 rgba(0,0,0,0.64);
}

.anecdote-original-scroll {
position:relative;
z-index:2;
width:100%;
height:100%;
min-height:0;
overflow-y:auto;
overflow-x:hidden;
padding:10px 30px 250px;
background:#171717;
scroll-behavior:smooth;
}

.anecdote-original-scroll::-webkit-scrollbar {
width:6px;
}

.anecdote-original-scroll::-webkit-scrollbar-track {
background:#080808;
}

.anecdote-original-scroll::-webkit-scrollbar-thumb {
background:#333333;
border-radius:0;
}

.anecdote-original-scroll::-webkit-scrollbar-thumb:hover {
background:#555555;
}

.anecdote-back-button {
position:relative;
z-index:20;
display:inline-flex;
align-items:center;
justify-content:center;
min-height:26px;
margin:0 0 20px;
padding:0 10px;
background:linear-gradient(to bottom, #141414 0%, #101010 54%, #0c0c0c 100%);
border:1px solid;
border-color:#333333 #202020 #181818 #202020;
border-radius:0;
box-shadow:inset 0 1px 0 rgba(255,255,255,0.040);
color:#c8c8c8 !important;
font-size:11px;
font-weight:700;
line-height:1;
text-decoration:none !important;
text-shadow:1px 1px 0 #000;
cursor:pointer;
}

.anecdote-back-button:hover {
background:linear-gradient(to bottom, #1d1d1d 0%, #171717 54%, #101010 100%);
border-color:#444444 #333333 #202020 #333333;
color:#ffffff !important;
}

.anecdote-floating-title {
position:absolute;
top:80px;
left:0;
width:100%;
text-align:center;
font-size:2em;
font-weight:700;
opacity:1;
transition:opacity .6s ease;
pointer-events:none;
z-index:10;
color:#ffffff;
text-shadow:1px 1px 0 #000, 0 0 12px rgba(255,255,255,.08);
}

.anecdote-floating-title.fade-out {
opacity:0;
}

.anecdote-narration-box {
position:relative;
padding-top:40px;
}

.anecdote-prologueinfo {
display:block;
font-size:1.05em;
line-height:1.8;
margin:60px auto 16px auto;
width:490px;
max-width:calc(100% - 40px);
text-align:left;
opacity:1;
transition:opacity .6s ease;
color:#d8d8d8;
}

.anecdote-prologueinfo.fade-out {
opacity:0;
}

.anecdote-flow {
position:relative;
}

.anecdote-narration,
.anecdote-flow .narration {
display:block;
font-size:1.05em;
line-height:1.8;
margin:0 0 16px;
opacity:1;
text-align:center;
transition:opacity .3s ease;
color:#e2e2e2;
}

.anecdote-narration.darken,
.anecdote-narration.tone-darken,
.anecdote-narration .darken,
.anecdote-flow .darken {
color:#6c6c6c;
}

.anecdote-narration.typing {
white-space:pre-wrap;
}

.anecdote-narration.is-image {
text-align:center;
}

.anecdote-narration .center-image,
.anecdote-narration img.center-image,
.anecdote-narration.is-image img {
display:block;
margin:30px auto;
max-width:70%;
height:auto;
border:1px solid #202020;
box-shadow:0 8px 22px rgba(0,0,0,.58);
filter:grayscale(.18) contrast(1.03);
}

.anecdote-narration object {
display:inline-block;
vertical-align:-2px;
}

.anecdote-highlighted,
.highlighted {
color:#ffffff !important;
text-shadow:0 0 4px #ffffff, 0 0 10px #ffffff;
transition:all .3s ease;
}

/* -----------------------------------------
3. Hint / key box
----------------------------------------- */

.anecdote-narration-hint {
margin:40px auto 0 auto;
padding:10px 9px;
border-radius:0;
background:#101010;
color:#c8c8c8;
border:1px solid;
border-color:#555555 #2b2b2b #050505 #2b2b2b;
font-size:.95em;
display:block;
font-family:inherit;
text-align:center;
width:fit-content;
opacity:1;
cursor:pointer;
transition:transform .1s ease, opacity .3s ease;
box-shadow:
inset 0 1px 0 rgba(255,255,255,.040),
inset 0 -1px 0 rgba(0,0,0,.72);
text-shadow:1px 1px 0 #000;
}

.anecdote-narration-hint:active {
transform:scale(.97);
opacity:.8;
}

.anecdote-narration-hint.hidden {
opacity:.2;
pointer-events:none;
}

.anecdote-narration-hint.dimmed {
opacity:.2;
}

.anecdote-narration-hint.reappear {
animation:anecdote-hint-pulse 2.2s ease-in-out infinite;
}

@keyframes anecdote-hint-pulse {
0% { opacity:.2; }
50% { opacity:1; }
100% { opacity:.2; }
}

.anecdote-key-box {
display:inline-block;
padding:4px 10px;
border:2px solid #555555;
border-radius:0;
background:#080808;
font-size:.9em;
margin-right:6px;
color:#eeeeee;
transition:all .1s ease;
box-shadow:0 2px 4px rgba(0,0,0,.5);
transform:translateY(0);
}

.anecdote-key-box.pressed {
transform:translateY(2px);
box-shadow:0 1px 2px rgba(0,0,0,.4);
background:#101010;
}

/* -----------------------------------------
4. Timeline sidebar - original placement
----------------------------------------- */

.timeline-sidebar,
.anecdote-timeline-sidebar {
position:absolute;
right:-250px;
top:112px;
z-index:5;
width:220px;
padding:12px 0;
font-size:.9em;
color:#aaa;
line-height:1.4;
}

.timeline-item {
display:flex;
align-items:flex-start;
gap:10px;
opacity:0;
cursor:pointer;
animation:anecdote-fade-slide-up .5s ease-out forwards;
}

.timeline-item.timeline-0 { margin-bottom:43px; }
.timeline-item.timeline-1 { margin-bottom:43px; }
.timeline-item.timeline-2 { margin-bottom:122px; }
.timeline-item.timeline-3 { margin-bottom:43px; }
.timeline-item.timeline-4 { margin-bottom:70px; }

.timeline-dot {
width:7px;
height:7px;
margin-top:6px;
border-radius:50%;
background:#ffffff;
border:2px solid #333333;
box-shadow:0 0 3px rgba(181,181,181,.6);
flex-shrink:0;
}

.timeline-content {
font-size:.95em;
line-height:1.6;
color:#dbdbdb;
text-shadow:1px 1px 0 #000;
}

.timeline-content strong {
color:#ffffff;
}

/* -----------------------------------------
5. Chat bubbles - original structure
----------------------------------------- */

.chat-wrapper {
display:flex;
flex-direction:row-reverse;
align-items:flex-start;
gap:10px;
margin-top:12px;
opacity:0;
}

.chat-wrapper.left {
flex-direction:row;
animation:anecdote-slide-in-left .1s ease-out forwards;
}

.chat-wrapper.right {
animation:anecdote-slide-in-right .1s ease-out forwards;
}

.chat-avatar {
width:66px;
height:66px;
object-fit:cover;
margin-bottom:-40px;
background:#080808;
border:1px solid #202020;
box-shadow:0 3px 9px rgba(0,0,0,.45);
}

.chat-block {
display:flex;
flex-direction:column;
max-width:60%;
}

.chat-block.left {
align-items:flex-start;
}

.chat-block.right {
align-items:flex-end;
}

.chat-name {
font-size:1em;
color:#5eb1ff;
margin-bottom:3px;
text-align:right;
font-weight:700;
animation:anecdote-slide-in-right .2s ease-out forwards;
opacity:0;
text-shadow:1px 1px 0 #000;
}

.chat-name.left {
text-align:left;
animation:anecdote-slide-in-left .2s ease-out forwards;
}

.chat-name small {
font-size:.78em;
color:#8a8a8a;
font-weight:700;
margin-left:4px;
}

.chat-name.neutral { color:#E7BB39; }
.chat-name.hostile { color:#e73939; }
.chat-name.friendly { color:#395ee7; }

.chat-bubble {
background:#101010;
color:#ffffff;
padding:10px 14px;
font-size:1em;
line-height:1.6;
box-shadow:
inset 0 1px 0 rgba(255,255,255,.040),
inset 0 -1px 0 rgba(0,0,0,.72),
0 2px 8px rgba(0,0,0,.34);
white-space:pre-wrap;
max-width:100%;
text-align:left;
border:1px solid #202020;
border-top-color:#333333;
border-bottom-color:#050505;
}

.chat-bubble.right {
border-radius:12px 0 12px 12px;
margin-right:0;
margin-left:40px;
}

.chat-bubble.left {
border-radius:0 12px 12px 12px;
margin-left:0;
margin-right:40px;
}

.fade-in-up {
animation:anecdote-fade-in-up .6s ease-out forwards;
opacity:0;
}

.radio-icon {
vertical-align:text-bottom;
margin-right:4px;
fill:currentColor;
height:1.3em;
}

/* -----------------------------------------
6. Original inline effects
----------------------------------------- */

.dot-fall-soft {
display:inline-block;
font-size:1.2em;
line-height:1.2;
font-weight:700;
color:#b4b4b4;
white-space:pre;
}

.dot-fall-soft span {
display:block;
opacity:.1;
transform:translateY(-10px);
animation:anecdote-drop-fade .4s ease-out forwards;
}

.dot-fall-soft span:nth-child(1) { animation-delay:0s; }
.dot-fall-soft span:nth-child(2) { animation-delay:.4s; }
.dot-fall-soft span:nth-child(3) { animation-delay:.8s; }
.dot-fall-soft span:nth-child(4) { animation-delay:1.2s; }
.dot-fall-soft span:nth-child(5) { animation-delay:1.6s; }

.quick-swap {
display:inline-block;
position:relative;
transition:opacity .3s ease;
white-space:nowrap;
}

.quick-swap span {
display:inline-block;
opacity:1;
transition:opacity .15s ease;
}

.quick-swap.fade-out span {
opacity:0;
transform:translateY(-2px);
}

/* -----------------------------------------
7. Control deck
----------------------------------------- */

#anecdote-control-deck {
position:fixed !important;
left:50% !important;
bottom:10px !important;
z-index:99990 !important;
width:1000px;
max-width:calc(100vw - 32px);
transform:translateX(-50%) translateY(120%);
opacity:0;
pointer-events:none;
transition:
transform .46s cubic-bezier(.18,.78,.22,1),
opacity .24s ease;
}

#anecdote-control-deck:empty {
display:none !important;
}

body.anecdote-reader-mode #anecdote-control-deck {
transform:translateX(-50%) translateY(0);
opacity:1;
pointer-events:auto;
}

.anecdote-control-frame {
display:grid;
grid-template-columns:120px 1fr 1fr 1fr 1fr 120px;
gap:4px;
min-height:38px;
padding:4px;
background:#101010;
border:1px solid;
border-color:#555555 #2b2b2b #050505 #2b2b2b;
box-shadow:
inset 0 1px 0 rgba(255,255,255,.040),
inset 0 -1px 0 rgba(0,0,0,.72),
0 8px 24px rgba(0,0,0,.55);
}

.anecdote-control-brand {
display:flex;
align-items:center;
justify-content:center;
background:#1d1d1d;
border:1px solid #202020;
border-top-color:#333333;
border-bottom-color:#050505;
color:#e2e2e2;
font-size:10px;
font-weight:700;
letter-spacing:.65px;
text-shadow:1px 1px 0 #000;
white-space:nowrap;
}

.anecdote-button,
.anecdote-link-button {
display:flex;
align-items:center;
justify-content:center;
min-height:28px;
box-sizing:border-box;
padding:0 8px;
background:linear-gradient(to bottom,#171717 0%,#141414 56%,#101010 100%);
border:1px solid;
border-color:#333333 #202020 #050505 #202020;
border-radius:0;
color:#c8c8c8 !important;
font-size:10px;
font-weight:700;
line-height:1;
text-align:center;
text-decoration:none !important;
cursor:pointer;
text-shadow:1px 1px 0 #000;
box-shadow:inset 0 1px 0 rgba(255,255,255,.040);
}

.anecdote-button:hover,
.anecdote-link-button:hover {
background:linear-gradient(to bottom,#202020 0%,#1a1a1a 56%,#141414 100%);
border-color:#444444 #333333 #101010 #333333;
color:#ffffff !important;
}

.anecdote-button:active,
.anecdote-link-button:active,
.anecdote-button.is-active {
background:linear-gradient(to bottom,#0c0c0c 0%,#101010 55%,#171717 100%);
border-color:#050505 #202020 #333333 #202020;
box-shadow:inset 1px 1px 3px rgba(0,0,0,.82);
}

.anecdote-button:disabled,
.anecdote-link-button.is-disabled {
opacity:.45;
cursor:default;
pointer-events:none;
}

/* -----------------------------------------
8. Animations
----------------------------------------- */

@keyframes anecdote-slide-in-right {
from { transform:translateX(10px); opacity:0; }
to { transform:translateX(0); opacity:1; }
}

@keyframes anecdote-slide-in-left {
from { transform:translateX(-10px); opacity:0; }
to { transform:translateX(0); opacity:1; }
}

@keyframes anecdote-fade-in-up {
0% { opacity:0; transform:translateY(10px); }
100% { opacity:1; transform:translateY(0); }
}

@keyframes anecdote-fade-slide-up {
0% { opacity:0; transform:translateY(8px); }
100% { opacity:1; transform:translateY(0); }
}

@keyframes anecdote-drop-fade {
0% { opacity:.1; transform:translateY(-10px); }
100% { opacity:1; transform:translateY(0); }
}

/* -----------------------------------------
9. Compact fallback
----------------------------------------- */

@media (max-width:1040px) {
.anecdote-index-container {
flex-direction:column;
padding:18px;
}

.anecdote-index-cover,
.anecdote-index-cover img,
.anecdote-index-cover-placeholder {
width:100%;
max-width:250px;
}

.anecdote-index-section {
padding:10px 18px;
}

body.anecdote-reader-mode .content-wrapper {
width:calc(100vw - 24px) !important;
min-width:0 !important;
max-width:calc(100vw - 24px) !important;
left:50% !important;
top:12px !important;
bottom:74px !important;
}

.timeline-sidebar,
.anecdote-timeline-sidebar {
display:none;
}

.anecdote-control-frame {
grid-template-columns:1fr 1fr 1fr;
}

.anecdote-control-brand {
display:none;
}

.chat-block {
max-width:74%;
}
}