* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: #fff; color: #111; }
body { font-family: "Songti SC", "STSong", "SimSun", serif; overflow: hidden; }
button, input, select { font-family: inherit; font-size: 16px; color: #111; background: #fff; border: 1px solid #777; border-radius: 0; }
button { cursor: pointer; min-height: 42px; padding: 9px 18px; }
button:focus, input:focus, select:focus { outline: 2px solid #111; outline-offset: 2px; }
#clock-viewport { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
#clock { position: absolute; text-align: center; background: #fff; color: #111; -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; }
#composition { position: absolute; top: 50%; left: 0; width: 100%; -webkit-transform: translateY(-50%); transform: translateY(-50%); }
.brand { font-size: 19px; letter-spacing: 6px; margin-bottom: 36px; }
.brand span { display: block; font-size: 11px; letter-spacing: 3px; margin-top: 10px; }
.calendar { font-size: 21px; letter-spacing: 3px; }
.weekday { font-size: 16px; letter-spacing: 5px; }
.time { line-height: 1.15; white-space: nowrap; font-family: Georgia, "Times New Roman", serif; font-variant-numeric: tabular-nums; letter-spacing: -4px; }
#colon { position: relative; top: -0.055em; padding: 0 0.035em; }
.seconds { font-size: 0.3em; letter-spacing: 0; margin-left: 0.2em; }
.period { font-size: 0.13em; letter-spacing: 0; margin-left: 0.45em; }
.lunar { font-size: 15px; letter-spacing: 3px; }
.daypart { font-size: 16px; letter-spacing: 7px; }
.rule { padding: 10px 0; }
.rule span { display: block; width: 42px; height: 1px; background: #111; margin: auto; }
.quote { font-size: 18px; letter-spacing: 3px; line-height: 1.8; word-wrap: break-word; }
.landscape { position: relative; overflow: hidden; height: 140px; max-width: 520px; margin-left: auto; margin-right: auto; }
.mountain { position: absolute; border-radius: 48% 55% 0 0; -webkit-transform: rotate(-12deg); transform: rotate(-12deg); }
.mountain-far { width: 58%; height: 100px; left: 32%; top: 58px; background: #dedede; }
.mountain-middle { width: 65%; height: 110px; left: -10%; top: 64px; background: #aaa; -webkit-transform: rotate(15deg); transform: rotate(15deg); }
.mountain-near { width: 66%; height: 85px; left: 54%; top: 103px; background: #555; }
.waterline { position: absolute; height: 1px; background: #777; bottom: 4px; }
.waterline-one { width: 68%; left: 4%; }
.waterline-two { width: 39%; left: 20%; bottom: 0; }
.seal { position: absolute; right: 8px; top: 13px; border: 1px solid #555; color: #333; font-size: 12px; line-height: 1.3; padding: 4px 3px; }
.clock-frame { position: absolute; top: 20px; bottom: 20px; left: 20px; right: 20px; border: 1px solid #aaa; pointer-events: none; }
.sync-footer { position: absolute; bottom: 27px; left: 65px; right: 25px; font-size: 11px; letter-spacing: 1px; text-align: right; }
#sync-time { margin-left: 12px; }
.style-minimal { font-family: Arial, "SimHei", sans-serif; }
.style-minimal .time { font-family: Arial, sans-serif; font-weight: normal; letter-spacing: -5px; }
.style-minimal .brand { letter-spacing: 2px; }
.style-minimal .landscape { height: 85px; }
.style-book .time { font-weight: bold; }
.style-book .clock-frame { border: 3px double #555; }
.style-book .quote { letter-spacing: 5px; }
.inverted, .inverted #clock { background: #111; color: #fff; }
.inverted .rule span { background: #fff; }
.inverted .clock-frame { border-color: #ccc; }
.inverted .seal { color: #fff; border-color: #fff; }
#settings-button { position: fixed; z-index: 5; left: 12px; bottom: 12px; font-size: 13px; min-height: 36px; padding: 5px 12px; }
#recovery-button { display: none; position: fixed; z-index: 5; left: 0; bottom: 0; width: 60px; height: 60px; padding: 0; background: transparent; border: 0; }
#refresh-flash { display: none; position: fixed; z-index: 8; top: 0; left: 0; width: 100%; height: 100%; background: #000; }
.settings { position: fixed; z-index: 10; top: 0; left: 0; width: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; color: #111; padding: 30px 24px; text-align: left; }
.settings-heading, #settings-form { width: 100%; max-width: 700px; margin: 0 auto; }
.settings-heading { position: relative; border-bottom: 2px solid #111; padding-bottom: 20px; }
.eyebrow { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 3px; }
h1 { font-size: 26px; font-weight: normal; margin: 25px 0 15px; }
.settings-heading p { line-height: 1.7; }
#close-settings { margin-top: 8px; }
fieldset { border: 0; border-bottom: 1px solid #aaa; margin: 28px 0 0; padding: 0 0 24px; min-width: 0; }
legend { font-size: 20px; padding: 0 0 14px; }
.field { display: block; font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.field input, .field select { display: block; width: 100%; margin-top: 7px; min-height: 44px; padding: 9px; }
.check { display: inline-block; width: 48%; vertical-align: top; padding: 9px 0; font-size: 16px; line-height: 1.6; }
.check input { width: 19px; height: 19px; margin: 0 7px 0 0; vertical-align: middle; }
.help { font-size: 14px; line-height: 1.8; color: #444; }
.guide { padding: 16px; border: 1px solid #999; font-size: 15px; line-height: 1.9; }
.guide h2 { font-size: 17px; margin-top: 0; }
.guide ol { padding-left: 23px; }
code { font-family: monospace; font-size: 22px; border: 1px solid #777; padding: 2px 9px; white-space: nowrap; }
.save-bar { padding: 20px 0; }
.primary { width: 100%; background: #111; color: #fff; border-color: #111; padding: 14px; font-size: 18px; }
#form-error { font-size: 15px; font-weight: bold; }
.colophon { text-align: center; font-size: 12px; letter-spacing: 2px; padding-bottom: 22px; }
.no-script { position: fixed; background: #fff; top: 0; left: 0; padding: 20px; z-index: 20; }
@media screen and (max-width: 380px) {
  .settings { padding: 20px 15px; }
  .check { width: 100%; }
  h1 { font-size: 22px; }
}
