/* SimpliSign™ — every rule in here is a deliberate usability crime.
   Safety note: nothing flashes or blinks faster than 0.5 Hz, so no photosensitivity risk. */

:root { --fs: 16px; }
* { box-sizing: border-box; outline: none; }                  /* no visible keyboard focus */
html { font-size: var(--fs); }                                /* text shrinks as you progress */
body {
  margin: 0; min-width: 1000px; padding-bottom: 20px;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  background: #00897b repeating-linear-gradient(135deg, #00897b 0 14px, #26a69a 14px 28px);
  color: #9e9e9e; user-select: none;
}
input, select, textarea { user-select: text; }
a { cursor: text; }
[hidden] { display: none !important; }                        /* author display:flex would otherwise beat the hidden attribute */

/* ---------- chrome ---------- */
.ticker { background: #ffeb3b; color: #f9a825; font: bold 12px 'Courier New', monospace; overflow: hidden; white-space: nowrap; border-bottom: 3px dashed #e91e63; }
.ticker span { display: inline-block; padding-left: 100%; animation: scroll 55s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }

#masthead { display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: linear-gradient(#f48fb1, #ad1457); border-bottom: 4px double #4a148c; }
.brand { font: 900 30px Impact, 'Arial Black', sans-serif; color: #ffee58; text-shadow: 3px 3px 0 #4a148c; white-space: nowrap; }
.brand small { font: 10px 'Courier New', monospace; color: #f8bbd0; text-shadow: none; }
#topnav { display: flex; flex-wrap: wrap; gap: 2px 9px; flex: 1; font-size: 9px; }
#topnav a { color: #f48fb1; text-decoration: none; }
#sessionbox { font: 10px 'Courier New', monospace; color: #f8bbd0; text-align: right; white-space: nowrap; }

#layout { display: grid; grid-template-columns: 170px 1fr 170px; gap: 12px; max-width: 1140px; margin: 12px auto 0; padding: 0 8px; align-items: start; }
.sidead { background: #fff176; border: 3px dotted #e91e63; color: #6a1b9a; font: bold 12px 'Courier New', monospace; padding: 8px; margin-bottom: 12px; text-align: center; cursor: pointer; }
.sidead.hot { background: #ff5252; color: #fff; }
.sidead.cool { background: #40c4ff; color: #01579b; }
#right .decoy { width: 100%; margin: 4px 0 14px; }

#foot { max-width: 1140px; margin: 14px auto 0; padding: 8px; font: 10px 'Courier New', monospace; color: #b2dfdb; display: flex; gap: 16px; align-items: center; }
.odometer { background: #000; color: #76ff03; padding: 1px 4px; letter-spacing: 2px; }

/* ---------- the card ---------- */
.card { position: relative; display: flex; flex-direction: column; min-height: 560px; padding: 14px 16px 56px; background: #fffde7; border: 6px ridge #ff9800; }
.card.v1 { flex-direction: column-reverse; }
.card.v2 .stephead { text-align: right; }
.card.v3 .stephead { text-align: center; }
.stephead { margin-bottom: 6px; }
.steptitle { margin: 0; font: italic 700 1.55rem Papyrus, 'Comic Sans MS', cursive; color: #ffcc80; }
.stepno { font-size: .6rem; color: #e0e0e0; }
.bar { height: 6px; background: #f5f5f5; border: 1px solid #eee; margin-top: 4px; }
.bar i { display: block; height: 100%; background: #ffe0b2; transition: width 2s; }
.bar.big { height: 26px; border: 2px inset #ccc; }
.bar.big i { background: #c5cae9; transition: width .3s; }
.content { flex: 1; padding: 10px 0; }
.pct { font-size: .9rem; color: #bdbdbd; margin-top: 4px; }

.msg { min-height: 2.7rem; margin-top: 8px; padding: 4px 8px; font-size: .68rem; line-height: 1.2; }
.msg:empty { visibility: hidden; }
.msg.error { color: #2e7d32; background: #e8f5e9; border-left: 4px solid #66bb6a; }   /* errors: cheerful green ✔ */
.msg.ok    { color: #c62828; background: #ffebee; border-left: 4px solid #ef5350; }   /* success: alarming red ✖ */

/* real navigation looks disabled; decoys look irresistible */
.btn { font: inherit; padding: .25rem .6rem; background: #e0e0e0; color: #b5b5b5; border: 1px solid #d0d0d0; border-radius: 0; cursor: not-allowed; }
.realnext, .backlink { position: absolute; z-index: 3; background: #e8e8e8; color: #777; border: 1px solid #ccc; font-size: .85rem; padding: .22rem .6rem; cursor: pointer; }
.backlink { font-size: .7rem; background: transparent; border: 0; color: #999; text-decoration: underline; cursor: pointer; }
.pos-tl { top: 8px; left: 8px; } .pos-tr { top: 8px; right: 8px; } .pos-bl { bottom: 8px; left: 8px; }
.pos-br { bottom: 8px; right: 8px; } .pos-tr2 { top: 8px; right: 96px; }
.decoy, .megabtn { cursor: pointer; font: 900 1.15rem 'Comic Sans MS', cursive; color: #fff; text-shadow: 1px 1px 0 #1b5e20; background: linear-gradient(#76ff03, #00c853); border: 3px outset #b9f6ca; padding: .6rem .9rem; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.tinylink { background: none; border: 0; padding: 0; font: inherit; font-size: .5rem; color: #cfcfcf; text-decoration: underline; cursor: not-allowed; }
.fine { font-size: .6rem; color: #c8c8c8; line-height: 1.25; margin: 4px 0 8px; }
.row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.blink { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.rainbow { background: linear-gradient(90deg, #f44336, #ff9800, #ffeb3b, #4caf50, #00bcd4, #3f51b5, #9c27b0); -webkit-background-clip: text; background-clip: text; color: transparent; }

input[type=text], input[type=password], select { font: 9px 'Times New Roman', serif; width: 104px; padding: 1px 2px; border: 1px solid #dcdcdc; background: #fff; color: #b0b0b0; }
select { width: 130px; }
::placeholder { color: #d8d8d8; }

/* ---------- landing ---------- */
.landing { padding-bottom: 20px; }
.logo { margin: 0; font: 900 4.2rem Impact, 'Arial Black', sans-serif; text-align: center; }
.tagline { margin: 0; text-align: center; font-size: 1.5rem; color: #ff4081; font-weight: bold; }
.shout2 { text-align: center; color: #7e57c2; font-weight: bold; margin: 6px 0 12px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0 16px; }
.megabtn.c2 { background: linear-gradient(#ff80ab, #f50057); text-shadow: 1px 1px 0 #880e4f; border-color: #ff80ab; }
.megabtn.c3 { background: linear-gradient(#40c4ff, #0091ea); text-shadow: 1px 1px 0 #01579b; border-color: #80d8ff; }
.megabtn.c4 { background: linear-gradient(#ffd740, #ff6d00); text-shadow: 1px 1px 0 #bf360c; border-color: #ffe57f; }
.megabtn.c5 { background: linear-gradient(#b388ff, #651fff); text-shadow: 1px 1px 0 #311b92; border-color: #d1c4e9; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.box { border: 2px dashed #ffb74d; padding: 8px; font-size: .75rem; color: #8d6e63; background: #fff8e1; }
.box h3 { margin: 0 0 4px; color: #ec407a; font-size: .95rem; }
.legal { font: 8px 'Times New Roman', serif; color: #d6d6d6; text-align: justify; margin-top: 22px; line-height: 1.15; }
.entry { font: 12px/1.2 Arial, sans-serif; font-weight: 700; color: #37474f; text-decoration: underline; cursor: pointer; }
.entry:hover { color: #102027; }

/* ---------- step 1: alphabet soup ---------- */
.slots { display: flex; gap: 4px; margin: 6px 0; }
.slot { width: 26px; height: 32px; border-bottom: 3px solid #eee; font: 700 22px 'Courier New', monospace; color: #d5d5d5; text-align: center; }
.bowl { position: relative; width: 470px; height: 250px; margin: 8px auto 0; background: radial-gradient(#ffe0b2, #ffb74d); border: 8px solid #bcaaa4; border-radius: 22px; overflow: hidden; }
.letter { position: absolute; left: 0; top: 0; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid #d7ccc8; background: #fff3e0; color: #a1887f; font: 700 14px 'Courier New', monospace; cursor: pointer; will-change: transform; }

/* ---------- step 3: password ---------- */
.meter { width: 150px; height: 10px; background: #eee; margin: 4px 0; }
.meter i { display: block; height: 100%; width: 100%; background: #4caf50; }

/* ---------- step 4: birthday counters ---------- */
.ctrs { display: flex; gap: 14px; margin-top: 12px; }
.ctr { position: relative; width: 150px; height: 118px; background: #f7f7f7; border: 1px solid #ececec; }
.ctrl { font-size: .55rem; color: #d0d0d0; padding: 2px 4px; }
.val { font-size: 1.25rem; text-align: center; color: #cfcfcf; margin-top: 4px; }
.plus { position: absolute; width: 26px; height: 26px; padding: 0; background: #eee; border: 1px solid #ddd; color: #bbb; font: 700 16px monospace; cursor: not-allowed; }

/* ---------- step 5: rotary phone ---------- */
.phonedisp { font: 700 1.3rem 'Courier New', monospace; color: #cfcfcf; margin: 4px 0; }
.dialwrap { position: relative; width: 300px; height: 300px; margin: 6px auto 0; }
.disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(#8d6e63, #4e342e); }
.hole { position: absolute; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #efebe9; border: 2px solid #d7ccc8; color: #a1887f; font: 700 18px 'Courier New', monospace; cursor: pointer; }
.dialcap { position: absolute; left: 95px; top: 95px; width: 110px; height: 110px; border-radius: 50%; background: #efebe9; border: 3px solid #bcaaa4; display: flex; align-items: center; justify-content: center; color: #bcaaa4; font: 700 20px 'Courier New', monospace; pointer-events: none; }
.fingerstop { position: absolute; right: 24px; bottom: 42px; width: 18px; height: 46px; background: #b0bec5; border-radius: 4px; transform: rotate(-38deg); pointer-events: none; }

/* ---------- step 6/7: e-mail + inbox ---------- */
.symgrid { display: grid; grid-template-columns: repeat(14, 22px); gap: 1px; max-height: 260px; overflow: auto; }
.sym { width: 22px; height: 22px; padding: 0; background: #f4f4f4; border: 1px solid #ddd; font: 13px 'Segoe UI Symbol', sans-serif; color: #444; cursor: pointer; }
.cboxes { display: flex; gap: 12px; margin: 10px 0; }
.cbox { width: 22px !important; height: 26px; text-align: center; font: 16px 'Courier New', monospace !important; }
.inbox { width: 440px; }
.maillist { max-height: 200px; overflow: auto; border: 1px solid #999; background: #fff; }
.mail { display: flex; gap: 8px; padding: 3px 6px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 11px; }
.mail:hover { background: #dde8ff; }
.mail b { width: 120px; flex: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mail span { flex: 1; }
.mail em { color: #777; font-style: normal; flex: none; }
.maildetail { min-height: 70px; margin-top: 8px; padding: 8px; border: 1px solid #999; background: #fffff0; font-size: 12px; }
.bigcode { font: 700 26px 'Courier New', monospace; letter-spacing: 4px; color: #222; }

/* ---------- step 8: captcha ---------- */
.robotzone { position: relative; width: 360px; height: 110px; border: 1px dashed #eee; margin: 6px 0 10px; }
.robot { position: absolute; left: 10px; top: 40px; display: flex; gap: 6px; align-items: center; padding: 4px 8px; background: #fafafa; border: 1px solid #ddd; font-size: .7rem; color: #c0c0c0; white-space: nowrap; transition: left .12s, top .12s; }
.robot input { width: 14px; height: 14px; }
.captchawrap { display: flex; align-items: center; gap: 8px; }
canvas.captcha { border: 1px solid #ddd; }

/* ---------- step 9: terms ---------- */
.tos { width: 300px; height: 96px; overflow-y: scroll; padding: 2px 4px; border: 1px solid #ececec; font: 8px/1.1 'Times New Roman', serif; color: #c4c4c4; text-align: justify; background: #fff; }
.tos p { margin: 0 0 6px; }
.tos .loadmore { color: #9e9e9e; font-style: italic; }
.yesno { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.yesno .btn:not(:disabled) { background: #ffca28; color: #fff; cursor: pointer; }   /* disabled looks disabled here… */
.yesno .btn:disabled { background: #ffca28; color: #fff; }                            /* …and enabled looks identical */

/* ---------- step 10+: review / login ---------- */
.review { border-collapse: collapse; margin: 6px 0; }
.review td { padding: 2px 10px 2px 0; font-size: .7rem; color: #cfcfcf; vertical-align: top; }
.review td:last-child { color: #b0b0b0; font-family: 'Courier New', monospace; }
.lock { font-size: 2.6rem; text-align: center; }
.cert { margin-top: 16px; padding: 10px; border: 4px double #ce93d8; background: #f3e5f5; color: #8e24aa; font-size: .8rem; text-align: center; }

/* ---------- overlays ---------- */
#layer { position: fixed; inset: 0; z-index: 990; pointer-events: none; }
#layer > * { pointer-events: auto; }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; }
.win { min-width: 280px; max-width: 560px; background: #d4d0c8; border: 2px outset #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, .4); font: 12px Tahoma, Verdana, sans-serif; color: #222; user-select: none; }
.wintitle { background: linear-gradient(90deg, #000080, #1084d0); color: #fff; padding: 2px 6px; font-weight: bold; }
.winbody { padding: 12px; line-height: 1.35; }
.winbtns { display: flex; gap: 8px; justify-content: flex-end; padding: 0 12px 12px; }
.win .btn { cursor: pointer; background: #d4d0c8; color: #111; border: 2px outset #fff; padding: 2px 16px; font: 12px Tahoma, sans-serif; }
.kbwin { max-width: 860px; }
.kb { max-height: 360px; overflow: auto; font: 7px/1.15 'Times New Roman', serif; color: #c2c2c2; text-align: justify; background: #fff; padding: 6px; }
.kb h4 { margin: 8px 0 2px; font-size: 8px; color: #b8b8b8; }
.kb p { margin: 0 0 3px; }
.kbsearch { display: flex; gap: 6px; margin-bottom: 6px; }
.kbsearch input { width: 200px; }

.ad { position: fixed; width: 290px; background: #fff59d; border: 4px solid #f44336; box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); padding: 22px 12px 26px; text-align: center; font: bold 13px 'Comic Sans MS', cursive; color: #b71c1c; z-index: 5; }
.adh { font-size: 17px; margin-bottom: 6px; }
.adp { font-weight: normal; margin-bottom: 10px; color: #6d4c41; }
.adx { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; padding: 0; background: #f44336; color: #fff; border: 2px outset #ff8a80; font-weight: 900; cursor: pointer; }
.adcta { cursor: pointer; padding: 6px 14px; font: 900 14px 'Comic Sans MS', cursive; color: #fff; background: #ff6d00; border: 3px outset #ffab40; }
.adreal { position: absolute; left: 3px; bottom: 2px; width: 12px; height: 12px; padding: 0; line-height: 8px; font-size: 10px; background: none; border: 0; color: #f0e68c; cursor: pointer; }

#cookie { position: fixed; left: 0; right: 0; bottom: 0; height: 34vh; z-index: 940; padding: 16px 28px; background: #263238; color: #eceff1; font: 13px Arial, sans-serif; border-top: 4px solid #ffab00; }
#cookie h3 { margin: 0 0 6px; }
#cookie p { max-width: 760px; line-height: 1.35; }
.cookiebtns { display: flex; gap: 22px; align-items: center; }
.cookiemore { background: none; border: 0; color: #37474f; font-size: 10px; text-decoration: underline; cursor: pointer; }
.cookiex { position: absolute; top: 3px; right: 6px; background: none; border: 0; color: #2f3d44; font-size: 12px; cursor: pointer; }
.toggles { max-height: 170px; overflow: auto; border: 1px inset #999; padding: 4px 8px; background: #fff; }
.toggles label { display: block; padding: 2px 0; }

#chatfab { position: fixed; right: 14px; bottom: 14px; z-index: 930; padding: 9px 14px; border: 0; border-radius: 22px; background: #1e88e5; color: #fff; font: 12px Arial, sans-serif; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
#chatpanel { position: fixed; right: 14px; bottom: 60px; z-index: 930; width: 260px; background: #fff; border: 2px solid #1e88e5; font: 12px Arial, sans-serif; color: #333; }
#chatpanel .chathead { background: #1e88e5; color: #fff; padding: 5px 8px; display: flex; justify-content: space-between; }
#chatpanel .chatlog { height: 150px; overflow: auto; padding: 6px; }
#chatpanel .chatlog p { margin: 0 0 6px; }
#chatpanel .chatin { display: flex; }
#chatpanel .chatin input { flex: 1; width: auto; font: 12px Arial; padding: 4px; }
.chatx { background: none; border: 0; color: #64b5f6; font-size: 9px; cursor: pointer; }

#busy { position: fixed; inset: 0; z-index: 980; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, .62); cursor: wait; }
#busy p { font-size: .8rem; color: #757575; }
.spin { width: 40px; height: 40px; border: 5px solid #ddd; border-top-color: #888; border-radius: 50%; animation: rot 1.2s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.hint { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); background: #fffde7; border: 1px solid #e0c419; padding: 8px 14px; font-size: 14px; color: #5d4a00; z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
@keyframes fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
